package com.dries.portal.module.chat.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/8/18 17:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Chat {

    private String msgId;
    private String to;
    private String from;
    private String avatar;
    private Integer action;
    private List<Content> content;
    private Date createTime;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Content {
        private Integer type;
        private String content;
        private String imageClass;

        public Content(Integer type, String content) {
            this.type = type;
            this.content = content;
        }

    }

}
